/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package topico2.parte9;

/**
 *
 * @author leovirgilio
 */
public class Funcionario {

    private String nome;
    private String cpf;
    private double salario;

    @Override
    public String toString() {
        return "Funcionario{" + "nome=" + nome + ", cpf=" + cpf + ", salario=" + salario + '}';
    }

    public double calcSalario() {
        return salario = salario + (salario * (20 / 100));
    }
}
